package cn.xtits.xtf.common.exception;

import java.io.Serializable;


public class XTBizException extends RuntimeException implements Serializable {
    private static final long serialVersionUID = -416273111872183366L;

    public static final Integer COMMON_ERROR = -1;

    private Integer code;

    public XTBizException(Integer code, String msg) {
        super(msg);
        this.code = code;
    }

    public XTBizException(String msg) {
        super(msg);
        this.code = COMMON_ERROR;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

}
